home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / doom / addons.zip / FFEARV25.ZIP / HOUSE1.REF < prev    next >
Text File  |  1997-08-02  |  7KB  |  347 lines

  1. @#HEALME
  2. ;free heal
  3. @offmap
  4. @do moveback
  5. @show
  6. `r0`c  `r1  The Healing Statue  `r0
  7.  
  8.   `%YOU ARE COMPLETEY HEALED.
  9.  
  10. `k
  11. @do `p02 is `p03
  12. @drawmap
  13. @update
  14.  
  15. @#doorguard
  16. @do moveback
  17. @label startg
  18. ;guy who owns on it pushes against the door guard symbol.  This lets him
  19. ;control the password to gain entrance to the castle, as well as sell it
  20. ;back or transfer ownership.
  21. @if house1.dat exist false then do
  22.   @begin
  23.   @do saybar
  24. `0"You have 1 minute to vacate this house!" `2RoboDog barks.
  25.   @closescript
  26.   @end
  27.  
  28. @readfile house1.dat
  29. `p20
  30. `s01
  31. @
  32. ;load owner and current password
  33.  
  34. @if `p20 not &playernum then do
  35.   @begin
  36.   @do saybar
  37. You wave to RoboDog (TM), nice of him to let you in.
  38.   @closescript
  39.   @end
  40. @busy
  41.  
  42.  
  43. @do `v01 is 1 ;set default choice to 1
  44. @show
  45. `r0`c  `r1 Programing Your RoboDog (TM) `r0
  46.  
  47.   `2RoboDog snaps to attention when he sees you are going to address him.
  48.  
  49. @do write
  50. `x`x
  51. @choice
  52. Set password to gain entrance (currently is `0`s01`%)
  53. Ownership options
  54. Leave
  55. @
  56. @if responce is 2 then do
  57.  @begin
  58.  @show
  59. `r0`c  `r1 Ownership Options `r0
  60.  
  61.   `2You retrieve your deed and carefully look it over.
  62.    
  63.    @do `v01 is 1
  64.    @do write
  65. `x`x
  66.    @choice
  67. Transfer deed to someone else
  68. Sell property back to the bank for `$5000`%.
  69. Do nothing of the sort
  70.  @if response is 1 then do
  71.    @begin
  72.    @show
  73. `\`\  `2Transfer to whom?
  74.    @chooseplayer `p20
  75.  
  76.    @if `p20 is 0 then do
  77.     @begin
  78.     @show
  79.   `2You decide to keep your house - for now.`\`\`k
  80.     @do goto startg
  81.     @end
  82.    @do `s02 is getname `p20
  83.    @show
  84. `2  Are you sure you wish to give your house to `0`s02`2?
  85. @do write
  86. `x`x
  87. @choice
  88. Yes
  89. Not on your life.
  90.  @if responce is 2 then do
  91.    @begin
  92.     @show
  93. `\`\  `2You decide to keep your house - for now.`\`\`k
  94.     @do goto startg
  95.    @end
  96.  
  97.   @do delete house1.dat
  98.   @writefile house1.dat
  99. `p20
  100. `s01
  101. 0
  102. 0
  103. 0
  104. 0
  105.    @writefile mail\mail`p20.dat
  106.   `0Business note:
  107. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  108. `0  `n`2 has transferred ownership of a Fortree Fear house to you. 
  109.   Password to enter will remain `0"`s01"`2 unless
  110.   `2you come by and change it.
  111.  
  112.     @do addlog
  113.   `0`n`2 has given `%a house in Fortress Fear`2 to `0`s02`2!
  114.      @routine seperate in gametxt.ref
  115.  
  116.     @show
  117. `\`\  `2Deed transfered.  Oh well - it was fun while it lasted.`\`\`k
  118.    @do goto done
  119.    @end
  120.   @if response is 2 then do
  121.     @begin
  122.     @show
  123. `\`\`2  Are you sure you wish to sell your house back to the bank?`\
  124. @do `v01 is 1
  125. @do write
  126. `x`x
  127. @choice
  128. Yes
  129. Not on your life.
  130.  @if responce is 2 then do
  131.    @begin
  132.     @show
  133. `\`\  `2You decide to keep your house - for now.`\`\`k
  134.     @do goto startg
  135.    @end
  136.  
  137.   @do delete house1.dat
  138.   @do money + 5000
  139.   @show
  140. `\`\  `%HOUSE SOLD!`2`\`\`k
  141.     @do addlog
  142.   `0`n`2 has sold `%a Fortress Fear house`2 back to the bank!
  143.     @routine seperate in gametxt.ref
  144.     @do goto done
  145.     @end
  146.  
  147.  
  148.   @do goto startg
  149.  @end
  150.  
  151. @if responce is 1 then do
  152.   @begin
  153.   @do write
  154. `\`\  `0"And the new password, s&sir?" `2(enter `4NONE`2 for no access to anyone)`\  `2Password:`x
  155.   @do readstring 40 `s01 `s01 
  156.   @do `p20 is length `s01
  157.   @if `p20 < 2 then do
  158.    @begin
  159.    @show
  160. `\`\  `2You decide the current password is ok.`\`\`k
  161.    @do goto startg
  162.    @end
  163.   @do delete house1.dat
  164.   @writefile house1.dat
  165. &playernum
  166. `s01
  167. 0
  168. 0
  169. 0
  170. 0
  171. @show
  172. `\`\  `0"Yes s&sir, I will not forget it!" `2the RoboDog promises.`\`\`k
  173.    @do goto startg
  174.   @end
  175.  
  176. @drawmap
  177. @update
  178.  
  179. @#sign
  180. @do moveback
  181.  
  182.  @if house1.dat exist false then do
  183.  @begin
  184.  @do saybar
  185. Castle Coldrake - For sale cheap, enquire inside.
  186.  @end 
  187.  
  188. @if house1.dat exist true then do
  189.  @begin
  190. @readfile house1.dat
  191. `p20
  192. `s01
  193. @
  194. @do `s01 is getname `p20
  195.  @do saybar
  196. `2Property of `0`s01`2.
  197.  @end 
  198.  
  199. @#enter
  200. @do moveback
  201. @offmap
  202. @if house1.dat exist false then do
  203.   @begin
  204.   @show
  205. `r0`c  `r1 `%For Sale `r0
  206.  
  207.   `2This beautiful house in Fortress Fear can be yours!
  208.   
  209.   Buy now and recieve the following bonuses:
  210.  
  211.   `0* `2A healing statue that heals you!
  212.  
  213.   `0* `2A wishing well!
  214.  
  215.   `2The asking price is `$$10,000`2.
  216.  
  217. @do `v01 is 1
  218. @do write
  219. `x`x
  220. @choice
  221. >&money 9999 Purchase it.
  222. <&money 10000 Sigh wistfully and leave since you don't have enough.
  223. >&money 9999 Leave.
  224. @
  225.  
  226. @if responce is 1 then do
  227.   @begin
  228.   @if house1.dat exist true then do
  229.     @begin
  230.     @show
  231. `\`\  `2Oh crap!  Someone bought it while you were thinking about it.  You
  232.   will regret your snail like thinking for the rest of your days.`\`\`k
  233.     @do goto done
  234.     @end
  235.  
  236.   @writefile house1.dat
  237. &playernum
  238. NONE
  239. 0
  240. 0
  241. 0
  242. 0
  243.     @do money - 20000
  244.     @do addlog
  245.   `0`n `2buys `%a Fortress Fear House`2!
  246.      @routine seperate in gametxt.ref
  247.  
  248.   @show
  249. `r0`c  `r1 `%Why hello there, landowner! `r0
  250. `\`2  Nice job!  You now own this house!
  251.  
  252.   `2Enjoy your new home.`\`\`k
  253.   @end
  254.  
  255. @label done
  256. @drawmap
  257. @update
  258. @closescript
  259.   @end
  260.  
  261. @readfile house1.dat
  262. `p20
  263. `s01
  264. @
  265.  
  266. @do `p21 is deleted `p20
  267.  
  268. @if `p21 is 1 then do
  269.   @begin
  270.    ;owner got deleted!!!  Lets put it up for sale again.
  271.    @do delete house1.dat
  272.     @do addlog
  273.   `%A Fortress Fear house`2 is put on the market today.
  274.      @routine seperate in gametxt.ref
  275.  
  276.    ;run script again
  277.    @do goto enter
  278.   @end
  279.  
  280. @if `p20 not &playernum then do
  281.   @begin
  282.   @do `s02 is getname `p20
  283.   @do upcase `s01
  284.   @if `s01 is NONE then do
  285.    @begin
  286.    @show
  287. `r0`c  `r1 None shall pass `r0
  288.  
  289.   `2You pound on the door for some time before you get an answer.
  290.  
  291.   `0"Master `s02`0 has declared that `4NO`0 visitors shall be allowed!" `2a
  292.   voice calls from behind the wall.
  293.  
  294. `k
  295.    @do goto done
  296.    @end
  297.  
  298.   @show
  299. `r0`c  `r1 Stand and unfold thyself `r0
  300.  
  301. `2  A head pops over the gate.  `0"Halt, you!  What business have you with
  302.   my lord and master, `%`s02`0?" `2the RoboDog asks.
  303.  
  304. @do write
  305. `x`x
  306. @do `v01 is 1
  307. @choice
  308. Offer an explanation.
  309. Visit later.
  310.   @if response is 1 then do
  311.    @begin
  312.    @do write
  313. `\`\  `2Say what? :`x
  314.   @do readstring 40 NIL `s03 
  315.   @do upcase `s03
  316.   @do upcase `s01
  317.  
  318.   @if `s03 is `s01 then do
  319.     @begin
  320.     @show
  321. `\`\  `0"Welcome to `%this house`0,"`2 the guard smiles as he opens the gate.`\`\`k
  322.     @do goto letmein
  323.     @end
  324.    @writefile mail\mail`p20.dat
  325.   `0Your Fortress Fear House Reports:
  326. `2-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  327. `0  `n`2 attempted to sweet talk the guard by saying
  328.   `0"`s03"`2.  `2He was `bNOT`2 allowed in.
  329.  
  330.    @show
  331. `\`\  `2The guard doesn't look too interested.`\`\`k
  332.    @do goto done
  333.    @end
  334.  
  335.   @do goto done
  336.  
  337.   @end
  338.  
  339. ;let him in
  340. @label letmein
  341. @do x is 38
  342. @do y is 15
  343. @do map is 419
  344. @loadmap 419
  345. @do goto done
  346. @#done
  347.